package com.woniuxy03;

public class Cat extends Animal {

    //子类在父类的基础上扩展
    private int health;

    public Cat(){
        super(null,0);
    }

    public Cat(String name, int age, int health) {
        super(name,age);
        this.health = health;
    }

    public String  toString() {
        return "name: " + getName() + ", age: " + getAge()+",health: " + health;
    }
}
